#ifndef _CRC32_H
#define _CRC32_H

#include <stdint.h>

#define CRC32_POLY    (0x04C11DB7UL)

//The init value to update crc32
#define INIT_CRC_VALUE  (0xFFFFFFFFUL)

uint32_t update_crc32(uint32_t crc, const uint8_t *buf, uint32_t len);
uint32_t final_crc32(uint32_t crc);

#endif
